package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 联系人申请
 *
 * @author yunZhouJiaDi
 */
@Data
@TableName("contact_apply")
@Accessors(chain = true)
public class ContactApply {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("申请人id")
    private String applyUserId;

    @ApiModelProperty("接收人id")
    private String receiveUserId;

    @ApiModelProperty("联系人类型（0:好友 1:群组）")
    private Integer contactType;

    @ApiModelProperty("联系人id或群组id")
    private String contactId;

    @ApiModelProperty("最后申请时间")
    private Long lastApplyTime;

    @ApiModelProperty("状态（0:待处理 1:已同意 2:已拒绝）")
    private Integer status;

    @ApiModelProperty("申请信息")
    private String applyInfo;

    @ApiModelProperty("申请方删除（1:否，2:是）")
    private Integer applyDelete;

    @ApiModelProperty("接受方删除（1:否，2:是）")
    private Integer receiveDelete;
}
